package com.zzl.bonds.ticket.dto.credit;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.general.common.utils.DoubleSerialize;
import lombok.Data;

import java.util.List;

/**
 * 核心企业授信详情
 *
 * @author : spp
 * @date : 2022/3/1 14:40
 */
@ApidocModel
@Data
public class CoreCreditDetail {

    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "使用情况/总金额")
    private Double creditAllAmount = 0.d;

    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "使用情况/已用额度")
    private Double creditUsedAmount = 0.d;

    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "使用情况/可用金额")
    private Double creditAvailableAmount = 0.d;

    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "冻结额度/平台操作的锁定额度 ")
    private Double creditLockAmount = 0.d;

    @ApidocModelProperty(description = "额度上线配置")
    List<SubsidiaryQuotaDto> subsidiaryQuotaList;
}
